package me.aartikov.screenresultsample.screens;

import me.aartikov.alligator.Screen;
import me.aartikov.alligator.ScreenResult;

import java.io.Serializable;


public class MessageInputScreen extends Screen implements Serializable{

    public MessageInputScreen() {
        super(0, null);
    }

    // It is convenient to declare a result as a static inner class.
    public static class Result implements ScreenResult, Serializable {
        private String mMessage;

        public Result(String message) {
            mMessage = message;
        }

        public String getMessage() {
            return mMessage;
        }
    }
}